package com.nb.dto;

import jakarta.validation.constraints.*;
import lombok.Data;

@Data
public class CreateUserDTO {

    private Long id;
    private String username;
    private String password;
    @Email(message = "邮箱格式不正确")
    private String email;
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;
    private Long deptId;
    private String realName;
    private Integer status; // 0-禁用, 1-启用
    private Long[] roleIds;
    private String idCard;
}
